Custom AI Pathfinding of 2D game

I tried but it not working well .