maze game in js