start of algorythm
fixed problem with nil raw scores