Yes, I’m generating all possible moves and then picking a random move from the list. This generation is synchronous in the game loop and is probably causing that lag. I do plan to improve it.