Collide with the walls instead of the grid