Update snake.cpp

finally using matrix to get new food place, add another check thing