Match state top based on grains