The sprite should move along the lines of the square. Change the coordinates of the star sprite to follow along the square.