A rogue like game in javascript