a function determining xy coordinate on the ground of the previously raised leg added