Fixed bugs with king detection possible bug with capture detection with kings, fixed bug with move check