public static void moveItem(InventoryItem[] targetInventory, int targetIndex, InventoryItem[] destinationInventory)
    {
        /*Example of moving an object from your inventory to a storage chest:
         *      moveItem(player.Inventory,3,chest.Inventory);
         * Where player is the instantiated player object, 3 is the index (in the player's inventory) of the object they want to move, and chest is the instantiated storage object.
         */
        
        //Helper, used to find access the properties of the object in question
        InventoryItem targetItem = targetInventory[targetIndex];
        
        //Is this a quest item? Should we allow the player to drop it?
        //if(targetItem.canDrop)
        //{
            //get the first empty slot in the destination inventory.
            int emptySlot = getFirstEmptySlot(destinationInventory);
            //If there were no empty slots, this value would be -1, so we need to make sure its >0. The other check is just a redundancy error check;
            if(emptySlot >= 0 && emptySlot < destinationInventory.length)
            {
               //System.out.println(" [DEBUG] Moving " +targetItem +" from " +targetInventory +" to " +destinationInventory);
                targetInventory[targetIndex] = Parasite.items.EmptyItem; //make the target Inventory at index empty
                destinationInventory[emptySlot] = targetItem; //make the destination inventory at index full with the object
            }
            
            
        //}    
    }