parse int for x and y pos