def get_clicked_pos(pos, rows, width):
    """
    Inputs: Mouse position, number of rows and the width of the entire grid
    Outputs: Row and Column number where the mouse is at
    Method: We take the pixel position of the mouse and get an rounded off integer value of the row and column value corresponding to the grid
    """
    gap = width // rows
    y, x = pos
    row = y // gap
    col = x // gap
    return row, col