Fix bug where a supplied invalid king move would be interpreted as an attempt to castle, causing a NRE when validating the move for check. Fix is to validate move before considering whether it violates check.
Merge branch 'BugFixes'