changed the property names of .x and .y to .xPos and.yPos respectively