add collision detection for wall