Changed isLeft or isRight to only care if one thing is to the left or right