because the coordinates increase as you go to the rightyou can "moveto the right by adding to the coordinate so the [ list adds to the coordinate and to the coordinateresulting in "movementto the right moving to the left is the oppositeyou would subtract (that isadd - from the coordinate but to move diagonallyyou need to add or subtract to both coordinates for exampleadding to the coordinate to move right and adding - to the coordinate to move up would result in moving to the up-right diagonal direction checking each of the eight directions here is diagram to make it easier to remember which two-item list represents which directionfigure - each two-item list represents one of the eight directions for xdirectionydirection in [[ ][ ][ ][ - ][ ][- - ][- ][- ]] xy xstartystart +xdirection first step in the direction +ydirection first step in the direction line sets an and variable to be the same value as xstart and ystartrespectivelyusing multiple assignment change and to "movein the direction that xdirection and ydirection dictate the xstart and ystart variables will stay the same so that the program can remember which space it originally started from post questions to