added function to check if the robot is a particular region