optimization. removed board int[] representation