Added events and styles so that the game is always a square.