add bitboard and magic