Level Generator (PHP) for my game (C++)