working but problems with level constructor