Finished logic for rest of pieces, added castling

Edited pawn logic, added logic for knights, bishops, rooks, queens, and
kings. Added castling. To be added: pawn promotion and en passant.