Fixes bug that generates a new game everytime the game board is clicked