So, only after the match I realised you can gain time by melting captured pieces ._. (So that's why the AI was gaining time after capturing). Looking back that was probably a better way to win than flagging the AI in the endgame. Still a solid game tho!