Head, Tail, and Size

changed layout of the snake struct and UpdateMatrix