Avoid duplicate username and keep count of connected players