More massive changes

Made progress on the check and checkmate logic