the count of bots starts at 0

===> to add an element: (takes in the name of the bot)

- get the length of the array of used ports
- if the length<100{
	- add 1 to the length to make the storage index.
- else{
	- search through the array and find the first index that is not nil
		(this might have the problem that empty arrays can't be iterated over)
			(might have to solve by filling the array with -1 first)
	- that will be the storage index
- }
- add 7475 to the index to make the port number
- store the port number at the index

- assign the interface and all other elements in their respective arrays using the index

- create the interface to the bot based on the port
	- place the GUI to the bot based on the count of bots
	- give the GUI to the bot the port of the bot (by sending a message to the GUI instance using javascript
		- the GUI should display the port of the bot, to distinguish it from other bots
	- initialize the port of the bot
- launch the bot using the name of the bot

===> to delete at element

- send a message to the bot telling it to kill itself
- get the port number from the interface
- subtract 7475 to get the storage index
- remove the interface, the ports and all other elements associated with the bot using the index
- remove the index from all the associated arrays, setting that value to -1

===>SUMMARY

- each bot only needs to know what bots are running, not which bots are available
- there is not need to search for an available spot except when starting to get squeezed for space
	- thus the program runs in two modes: an 'extreme cardinality' mode that is less efficient, and a normal mode that is more

===>REQUIRED VARIABLES

- array of used ports
- array of interfaces

(could i just condense these into an array of interfaces?)
	(yes!  only one array: the array of interface elements)

===>QUESTIONS

- should i initialize the port within the interface or outside it?
	- inside the interface!  This makes managing the space inside the patcher much easier

===>SOLUTIONS: 

- instead of removing an array element when the thing is cancelled, set that element to -1; 



