"Going to figure out the logic in psudeo code then convert to javascript after"