@Then("the data file should be updated with the \"(.*)\" statistics$")
	public void correctStatistics(String state)
	{
		
		if(state.equals("initial"))
		{
			currentSavedIndex=menu.getCurrentSavedIndex();
			SavedGame[] games = tetris.getSavedGames();
			for(int x=0;x<games.length;x++)
				System.out.println(games[x].getName());
			System.out.println(currentSavedIndex);
			assertTrue(games[currentSavedIndex].getPoints()==0
					&&games[currentSavedIndex].getLevel()==1
					&&gameName.startsWith(games[currentSavedIndex].getName()));
			
			
			
		}
		else if(state.equals("changed"))
		{
			currentSavedIndex=menu.getCurrentSavedIndex();
			SavedGame[] games = tetris.getSavedGames();
			for(int x=0;x<games.length;x++)
				System.out.println(games[x].getName());
			System.out.println(currentSavedIndex);
			assertTrue(games[currentSavedIndex].getPoints()>0
					&&games[currentSavedIndex].getLevel()>1
					&&gameName.startsWith(games[currentSavedIndex].getName()));
		
				
		
		}
	}