Added data definition and part of magic-write

I put the data definitions for the functions and input part of the magic-write into the code as well. You guys should check my data definitions and see if there is any change needed for them. Also the I modified the magic-write.rkt into world-save.rkt, so our world can be translated into strings and translated back. But I haven't been able to make a function yet.