A* pathfinding for beginners using Lua