Collision with the walls done