New leveling system; also fix text editing bug