I object oriented your code

Hey, it's avindra from reddit. Thanks for linking your project. It helped me understand canvas. I decided to rewrite whole parts of it so that I can understand it and get this code looking up to date.

Also, I fixed the monster animation, look how smooth it is :D