refactoring.
moved constants to field class and removed translate and wrapXY method.