added wall as an object, added wall detection