fixd a bug in simulateNextTurn