In that case, add your updated code so that people can give advice based on your latest. You should also say something about what an enemy is. Do you have an enemy class? Before making the enemy follow a particular generated path, maybe you need an enemy that can follow any path – or go anywhere, for that matter, like travel to point A.
In order to better understand what you are trying to do, I also read your previous thread: