Refactor bit constants

Change: bit constants representation from decimal to hexadecimal to
simplify some cases.
Change: slight optimization in negation of bitboard.