Well, I'm trying to get the board to only allow legal moves. I have the basic moves for the king, rook and pawns done. Castleing and en passant are not in yet, nor the other pieces.