An advanced game engine for 3D games