Moving arrows calculates coordinates