public void setupCharactersFromMazeParameters(MazeParameters mazeParameters){
Map<String, MazeCharacter> characters = new HashMap<String, MazeCharacter>();
List<MazeCharacterConfiguration> charactersConfigurations = mazeParameters.getCharactersConfigurations();
for (MazeCharacterConfiguration characterConfiguration : charactersConfigurations) {
MazeCharacter character = new MazeCharacter((Long) characterConfiguration.getConfiguration(ConfigurationType.ACTIONS_INTERVAL));
character.setStrategy((MazeCharacterStrategy) characterConfiguration.getConfiguration(ConfigurationType.MAZE_CHARACTER_STRATEGY));
character.setColor((Color) characterConfiguration.getConfiguration(ConfigurationType.COLOR));
characters.put((String) characterConfiguration.getConfiguration(ConfigurationType.CHARACTER_ID), character);
}
setCharacters(characters);
}