Fixed logic so player turn works with computer players.