Functions renamed and tidied. Added more intrinsics for faster operation. Added move validations for castling. started work on move make and unmake operations.