added gameover function and stuff