Snake game on javascript Matrices!