add collision detection with walls