added framework for a minimax tree for the AI

state.js added with the State object representing a node in the minimax
tree of game states, some unnecessary code removed from game.js