added switching of players