Changed input to aStar implementation