Snake functionality added