adding changes to map to allow user to use different fitness functions