minimax, look into alpha-beta pruning later