Moved all functionality into multiplayer to remove the need to manually
copy code