availableItems array will not change due to swap action