setters and getters for base posx and posy