Trying to implement moving with a*