changed instnace variabel to private in GameElementComparator