better organization of player update code. Set up a ping