We still have that problem, about clicking the same tile twice. We went through code so many times and did so many changes but still it didn’t help. So we thought to live it there and go along and made menu screen, end screen and added music.
For menu screen we just simply displayed text on the screen, and changed background color. As soon as player clicks on the play button, its actually a text, new game starts and when she lose end game screen is shown asking you for play again or quit the game.
That’s all we did for this project.