Basic client code (with grid drawing)