Use a Vector2i rather than X and Y

We have the Vector2i class already, let's use it.
I'm against removing the getX() and getZ() because they allow you to get the coordinates without creating an object. This Vector2i getter should be an overload.