first commit for snake
Added logic of losing game by contact the snake body