Made Engine class into Singleton