GameModes or GameMode is a class that the Unreal Engine utilizes for each map inside GameMode
In The World Settings of the map you can specify a game mode
If you want to create your own game mode you can simply create a new blueprint class that inherits from GameMode