Fixed bug that players can keep guessing after game is done, also cleaned up useless code