1. ArrayList instead of HashSet
2. visited false
3. print after 1500 instead of 150