implemented score and level calculation