Added snake code