fixed bug in selecting next player