my completion of Zee spencer's snake tutorial