Changed increases in x and y to this.getwidth and this.getheight, to compensate for different sized screens