Added protection around doing actions when the game has not yet started.