Added basic win detection