Check if the game is already over

Use the threshold of the current state.
Not implmentented for makes moves.
Added capture_king sample to show this.
Added pinning_moves.txt to show what it doesn't do.