changed how cards are sorted on screen in DOM and broke out the run js into own file