Replaced the isRobot() check with two new functions, one of which is overloaded for robots.  Object oriented programming intensifies!