removed this.xPos

changed to this.x this.y