added winner handling