Updated hit testing for walls & wall detection