snake is not part of ps struct. Plus, using fread and fwrite to write ps struct.