Check out Dijkstra's algorithm. It is easy and for a 8x8 board it's more than fast enough.


Follow me on twitter