Changed constructor of game,added visitor pattern to game.
Made Node and Edge independent objects.
#0015 Test cases refactored for new model.