needed to initialize hashmap; fixed Random.nextInt exception