Added the addSpectator and addPlayer functions.