Problem using EEPROM solved

Stop using this program it constantly write to your EEPROM and at the same location, this will quickly burn it out.

The EEPROM only stores bytes not int values. Your code makes little sense. It could be that location zero is already burned out and that is why the value doesn’t change.