SGengine.cpp added. Contains implementation of SGengine.h functions.