Added right wall detection in NPAgent