Adding function for gameover