Lights Out!

The game consists of a grid of lights which is 5x5 by default. When the game starts, a random number of these lights is switched on. The game default is a 50% chance of being lit. Pressing any of the lights will toggle it and the four adjacent lights. The goal of the puzzle is to switch all the lights off, preferably in as few button presses as possible.