Refactored Level.cpp