Snake Function and Lose state

Snake cannot eat itself now and now has a lose state. Need to work on reset