create webSocket, simple gamemechanic + tests