Change playerid from int to unsigned short, remove iostream