Added a validation for square in Bitboard.
Adding equals, hashCode and toString for Bitboard.