Game logic almost complete - must fix a bug near the end of the game