draw grid
version 0.2 basic function