Refactoring to correspond with MVC. Added a Level class.