Added a win function.