game-over logic, game-won logic, bug-fixes