The coordinates are passed from the back-end server and the rectangle moves according to these coordinates.