Separated the engine in a package, minor changes to sprite inheritance