merged code together. added create game state table