Updated castling method and added comments
Updated exception handler