refactoring and adjusted position of score and lives.