multiplayer billiard on js and canvas