added function to find draggable's ship type and orientation