Fixed next player code