For the sake of optimization, simplicity, and code readability, the DIFFICULTIES array is now a hash. Changing the difficulty works the same as usual, the only difference is, when creating a difficulty, instead of passing the id in the constructor of a Difficulty, you can simply use the hash index.