Removed unused variables in BuildLevel