Two points moving in a square