fix bug in resetGame