code: func (b *Board) Piece(sq Square) Piece {
  	for _, p := range allPieces {
  		bb := b.bbForPiece(p)
  		if bb.Occupied(sq) {
  			return p
  		}
  	}
  	return NoPiece
  }
docs: // Piece returns the piece for the given square.