having trouble with isinstance to make a list of possible actions on an entity in range