added some functions for square drawing and generation