Using the min-max algorithm to value game states