Add end-game check and add last move info as CommandInfo