How do i make custom GameState work?

When you use GameMode Base you have to use GameState Base and when you use GameMode you need to use GameState. They go hand in hand.