Added graphics code, although sprite class still needs work. Untested. (forgot some code, recommiting)