Implemented the shifting of players at the end of the turn.