additional methods operating on arrays to discover piece type