tried implementing an A*…..so close!!! comparison is messing up