Added castling code.  However, many bugs still persist, and the layout of the pieces may be wrong.  This requires testing and research.