server side for https://github.com/sarcilav/playingPales