You are correct. Unfortunately I failed to map the moves each piece can make onto the board, which also resulted in the terrible AI.
At least you can now say you won three player chess in two moves. That counts for something?