Win checking mechanism added