BitArray implementation for chess program