Added startGame and pauseGame functions.