Fix: randomAvailableCell cannot return the last available cell.