Fix bitboard logic