Added wall check in getWallAngle