Learning the A* pathfinding algorithm is a good starting point as this is common in simple tile games. These two links should get you started:
[1]: http://www.raywenderlich.com/4946/introduction-to-a-pathfind...
[1]: http://www.raywenderlich.com/4946/introduction-to-a-pathfind...