working on wall collision detection