Improved EventManager array and created GfxResource classes