Implement remaining game-over functions (fix #261).