wrote function to place text within the grid based on its cell coordinates.