Level editor almost works but not quite