Minmax with 5x5 grid