Fixed check rules -- cannot castle out of/through check

Game rules are now fully implemented and functionald