refactored level class. added renderer component