actually fixed the number of moves bug.