More constants. Fixed end-of-game logic.