Changed type of Hashset to Set in Graphics