where all the work for the snake game goes