added more scoring logic