Modular game engine