Points counting logic.