added pause functionality to snake