added getNextMove back in