duker02 You clear the player's inventory every time it executes the loop. Do that before executing the loop.