Added function to print coordinates of squares