fixed problem with wall collision detections