Fixed the calculation of rating.

The problem was casting from int to float64 problems in the go implementation of the ELO rating.