a* finds nearest point if target cant be reached