PHP implementation of the Elo rating system