Added foo detectWall code to be implemented in the near future.