Made the menu work. It's ugly but that will mostly be fixed in Tiled instead of in code.