Fixed bug in next-player-pos