Creating A Star Algorithm from Scratch