FIXED: if condition not paranthesized, added scoring functions to return;