I'm trying to make a hotbar for a game and I want the item that has been bought to go to the nearest available hotbar slot. This hotbar slot has to have a false value for the instance variable "Used". I can get the item and put it in a hotbar slot, but the items just overlap. Basically, I want all items to spawn in the same slot (which I have done), then pick the closest slot that has nothing in it/"Used" set to false.