Learning basic A*