Added editor integration to game logic.