Implement a second window which will contain all buttons for the level editor and fix a memory leak.