private static int getFreeSlots(InventoryItem[] targetInventory)
    {
        //counter variable
        int count = 0;
        //Scan the targetInventory looking for EmptyItem's
        for(int i = 0; i<targetInventory.length; i++)
        {
           //if it finds one, increment the counter variable.
           if(targetInventory[i].equals(Parasite.items.EmptyItem))
           {
               count++;
           }
        }
        //return the count
        return count;
    }