Update Levels.cpp

used std::transform wrongly