game logic modularity