fixed issue with duplicated hal objects being created in difficulty.py