Update isepic-chess.js

fixed castle bug + complete code cleanup