added some game logic and gametree class