Complete rework

Second commit
Script now features tile drawing, paint, mouse and more