Korean Ladder Game written in Javascript