impl snake movement and controls