Function to store PKM in first available box/slot