A* prliminary stage