maybe extract a getEvasionDirection method to reduce the number of lines here