Update engine.js

Created a convenient way to create/extend a class
Working on: Simplified way to init the game