fixed crash on exit, added gameover functionality
merged and fixed broken exit functionality