Implemented state save and load backend on the server