refactored 3DGameEngine for new CoreEngine system