Initializes a ImmutablePosition with the current x and y coordinates.
A new ImmutablePosition instance.