gameover function and conditionals