Fixed an issue with random and fixed some inconsistent curly braces in LevelGenerator.cpp