wall detection
removed print statements