we found a way to fix the repeating messages (and prompted users to reload the web page at the end to start the game again) thanks again! :)