just pushing my work on the tilelib stuff, not done though :(