moved handling game over condition from MM game engine to main engine