finished the framework for score and level