Moved most of core to gfx engine, basic drawing