Open up the dev tools if they aren't already Ctrl + Shift + i. Use the arrow keys - and watch what the dev console is telling you. Those are showing the CSS class(es) that have been applied to each square. When you move the maze runner into the "wall" observe that there is one square that is both "filled" and "wall"
Those are showing the CSS class(es) that have been applied to each square. When you move the maze runner into the "wall" observe that there is one square that is both "filled" and "wall". We don't want that to be possible. There is a new member of the limit object! limit.walls will return an array that contains every "square" where the CSS class "wall" has been applied.
You've already written code whose purpose was to prevent the cursor from moving under certain conditions. wink wink, look there. You now have two conditions to check for. The cursor can move if it is not on one of the four edges and the spot it is trying to move to is NOT a wall