Added base of the Snake class.