Galway are through to the quarter finals of the All Ireland Senior Football Championship after they beat Tipperary.