Fixed some compilation errors in the incomplete code of level.