fixed ugly code and fixed score
Merge remote-tracking branch 'origin/master'