Checking for own moves to protect king done.