game engine modules refactored