[enhancement] make sure we don't try to play a turn if the AI player is mate