Updated movePath()