UVa 12015: careful for array copy of directions not content