problema schi - varianta backtracking