refactoring and adding controls menu and score container