Refactor read-bitboard