Moves files at their right places