own location class to store location, slightly improved A star algorithm