partial work on grouping game 3