Handle start and end game