18.07.2020, 08:01
This isn't the way to do it. You should consider array as the ID. do what grymton told. make a seperate token called taken and make it true when taken and false when its removed then loop through all and take the array index which taken is false using break;