best[0] is the accumulator score.
x, y, rx and ry should be cast to integers. the algo provides float and it makes sense to keep float and let the user decides what to do.