square size based on maze values