SWEET BABY JESUS ONCE AGAIN, CHECKMATE FINALLY FINALLY WORKS WITHOUT ALL THESE STUPID BUGS

I FORGOT TO ADD CAPTURE LOGIC TO PAWN'S FIRST MOVE, AND I WAS ALSO NOT CHECKING FOR OBSTRUCTION, WHICH I AM NOW DOING, WHICH IS NOW WORKING