refactor level layout to another class