finished minimax; added value to state; need stateToString to see if it works.