Moved next_player to be next of other logic statements.