Chopped the findBestDirection() function into findBestOffensiveDirection and findBestDefensiveDirection in order to clean up the the code a little bit.