Function normalizeMove