Javascript snake game, one or two players