-added winner detection