A Compactification of the space of Maps from Curves