added method for making the winning move