Snake: Fixed buggy input code.