private void restart() { this.gameStatus = Snake.STATUS_RUNNING; this.foodNumber = 0; for (int j = 0; j < listPieces.Count; j++) { Destroy ((GameObject)listPieces [j]); } this.listPieces.Clear (); SNFood.getInstance ().reset (); SNCell cell = null; for (int i = 0; i < rows; i++) { for (int j = 0; j < colums; j++) { cell = new SNCell (); cell.reset(); } } direction = Vector3.down; initializeHead (); addInitialPieces (); }