Working with strings

move() calculates "dist" using the current coordinates: "posX" and "posY", and then updating them.