udpated winner code
added to get state route