Added a gameover method in engine