Added more logic outlines to the findBestDirection function which now takes a boolean if the player is offensive or not