refactored out position class
indicate if robot is lost