assignCoordinates first