creating a snake