synchornizes player with websockets