You need to check on startup if the prior EEPROM data has been stored, and then not overwrite it. That code will overwrite it every time.
Do a test for 255 (0xFF), that is the value read back if it hasn''t been written to yet.
Add some method to tell the program to store when the maze is done. Setup is not run again at the end, you need something that runs from loop, or a function that loop calls.