Handling up to 1000 moves