added some modularity to the game module