Remove direct calls to setPos, moveBy, setX and setY
Replace call to pos()