A bit refactoring in bitboard.