Use a Vector2i rather than X and Y

We have the Vector2i class already, let's use it.
getPosition(); would be more consistent with other similar methods in the world package