private void deleteGames(boolean incomplete){
            ArrayList<GameStat> games = GameStat.getGames();
            long[] ids = new long[games.size()];
            int index = 0;
            for(GameStat g: games)
                    if(g.incomplete != incomplete)
                            ids[index++] = g.gameId;
            for(int i=0; i< ids.length; i++){
                    if(ids[i] != 0)
                            GameStat.delete(ids[i]);
            }
    }