added methods to calculate number of levels in the project, changed WBTRender accordingly to create level braces dynamically