Move to the other end of the grid without touching the buried mines. Use the arrow keys to move. When you get to the other side, disarm the mines by pushing the space bar while you're on the red disarmer.
This is a proof of concept for @Paz_Vizla 's game with randomly generated levels