FULL SCREEN TO AVOID GRAPHIC BUGS. Mouse to move and place blocks. Space to get the start tile and click to place it. Then place the end tile. It will take about few second to get to the end but I added that only to make the project look appealing to the eyes. It actually takes less than a second to find the path.
Thanks to @BoltBait for the basic algorithm. Special feature- It can detect if the enemy is blocked!(I mean if there is no way to reach the end tile)