Fixed unnecessary passing of array to checkWin method