I believe I fixed the path boundary checking for left and right

Code probably still needs cleaning and I need to check if the boundaries
are checked for the hero tile as well