Restructured code and no more errors when failling to send the ping to a player
As the title mentioned, the code was a bit restructured, and also, the errors when failing to send the ping to a player are ignored and not printed anymore in the console.