did a first pass, porting the logic, refactoring into functions. Found a few bugs in the original code:
- when a computer promoted to a king, the original piece would not be removed from the board
- humans could move normal pieces like kings
I've noticed at least one bug where the computer does not promote to a king when reaching row 0