Fixed bugs in next player decision.