added same code for winning_move