Re-factored a bit to make the game board separate from the main program