added wall collision