added gameover exit functionality to RTS