Added next_player function for readability and reduce code duplicate