Refactoring: global position now represented as Position.