Playing with A*. Something is seriously wrong =(