setPos mutator function