I started reading some articles on AI today. I’m either going to use Neural Networks or Potential Fields, which basically assign a very high number to the start position and loop through and as you get closer to the goal, the number decreases. All objects are given the highest possible value. The lower values are where you want to go, and higher are where you stay away from. Then, you just loop through the pixels or tiles surrounding you and you choose the lowest of those. Pretty simple.