handle live and ended games