Fixed lab2

I fixed lab2 and altered the path finding algorithm so that it is more
efficient by checking down, right, left, up