Preliminary implementation of teamplay mode. Added additional checks to ensure that players are really allowed to spawn when they request to.