How to extend functions in GameMode class?

First thing you should do:
Solely have the overwritten function RestartPlayer as an empty function, add a breakpoint and see if it enters the function.

Did you set your custom GameMode class to be used in the editor’s project settings?