add w_array to guess algorith