add valid flag to solutions
fix #1 don't erase css styles when tiling