Created a class system for game objects.
Fixing bugs. Bit rusty with Lua