Added new commands for toggling friendly fire
Rewrite of some code (eg. team joining methods), bug fixing