I tried playing against the Chess engine I am working on and it decided to take my pawn and turn it black
You're viewing a single thread.
How did you manage to move twice on your first move?
It's the computer turn and it decided to play one of the white pieces and then paint it black (since op is coding it and I assume it's not finished), I guess.