Changes on ProcessKingSide and CheckForKingExit

also some todo tasks for personal use