Fixed team bugs in scoreboard, implement getTeam and addTeam

teams were not set, but only sent to the players.
team.addPlayer used to remove the player instead of adding it.