void snake::resetFood() { clearFood(); while(createFood()); }
void EditFood::saveFoodAndClear() { if (saveFood()) { clearFood(); } }
bool snake::setFood(int x,int y) { clearFood(); if(MAP[x][y]==NOTHING) {MAP[x][y]=FOOD;snakeFood.x=x;snakeFood.y=y;return true;} else return false; }