updates with xPos and yPos and gets rid of xCenter and yCenter