Basic php class for calculating elo rating