Added check for win, move categorization