idx in burnt, instead of adding two elements.
Added score function.