winner method not working