Moves input files
Solved #13 in scala