Creates logic to stop game.