Completed collision detection for top-left, top-right, bottom-left and bottom-right walls.