getTeamForPlayer fixed with XOR instead of AND