Outsourced the level control to it's own class