Multiplayer functions now, mild refactoring