added wall detection to predict2