King in check and Is_threatened functions written

This is in gamestate files only. They probably will be upgraded later