Added in collision detection with the lines so maze can be traversed properly