Finite State Graphon Games with Applications to Epidemics