- convert to rooms. CTRL+F through room objects and just add
rooms[room.key].* - speed. sort through rooms and snakes in
init().
rooms.forEach((room,i)=>{
room.snakes.forEach((snake,j)=>{
checkwin(room,j);
moveplayer(snake,j);
...
})
})- change
speedso that it goes 2x fast not jumps 2.