Wait for board to change instead of using a fixed sleep.

This improves safety, ensuring that the AI always operates on the correct board state instead of
potentially basing decisions on an outdated board.