Snake constructor

task done