Implementing new score algorithm.

Signed-off-by: gvero <tihomir.gvero@gmail.com>