Fixing move made function