calc of fitness function - finished; implementation of dfs - initialized