win checker modified to know which gamestate it belongs to