I didn't have the right bits setting in P1OUT in isLeftSensorCloseToWall() and isRightSensorCloseToWall(). There were both set to BIT1. They need to be set to BIT0 and BIT6, respectively.