Modifying Snake to fit SF, tidying up some code.