Fixed the endGame() crash bug. Yay.