My sketch freeze

I´m using the:

Serial.print(FreeRam()); // Show free memory

to print the free memory, but I don´t know if this update? it stays at the same value all over the project until it freeze.

You can see my code, that is attached to my first post.

about the int unsigned long, it dosen´t complain about it. Should I remove the "int" ??