Added code for handling input, updating, and rendering of entities.

Also fixed some pretty stupid mistakes, such as forgetting the "};" at
the end of a class decleration. I guess I should see if the code
compiles before commiting.