This line assigns "move forward" to a variable if the square directly in front of Torque is an empty square or a friend. If a mine or a barrier is found, then the variable will still contain "move backward" (assigned to it in a previous line).

Note:  When the scan is checked, it cannot be either an enemy or a flag, as noth of these situations have already been accounted for, and Torque will have jumped to another routine.