implemented moving snake