fixed the xLocation counter in the player class