snake movement and input fixed, spawning of apples fixed.