Added a winning function I'm not proud of...