Split up files

I split up main and its file implementations into a new file called
files.h.  I also put in some #ifndef in input.h because you can never be
sure that it is not defined (though here you kind of can be).  I also
added checkCorrect implementation that doesn't work right now (it always
counts everything as incorrect when some should be correct).