set maxY to be the world's max height.