Script for the game KingsOfChaos, improving gameplay, tracking player statistics and connecting users with each other.