When you click on a square, it and the squares adjacent to it will change colour between red and green. Get all the squares Green to win.
A simple 3x3 puzzle that I made while I was bored. I know its not pretty but it works perfectly. Press the green flag in the corner to remove the You Win! once you have beaten it