   (:refer-clojure :exclude [ancestors])
   (:require [clj-chess.board :as b]
             [clj-chess.game :as g]
-    #?(:cljs [jschess.chess :as jsc])
-            [clj-chess.board :as board])
+    #?(:cljs [jschess.chess :as jsc]))
   #?(:clj (:import (chess Square Piece SquareSet))))
 
 (def ^:private color-to-keyword

     (e.g (piece-count board :black :rook)) or two arguments representing
     board and piece with color (e.g. (piece-count board :wb))."
     ([board piece]
      (board/piece-count board (piece-from-keyword piece)))
     ([board piece color]
      (board/piece-count board (piece-make piece color)))))

(defn parent
  "The parent board of the current board (i.e. the board as it was before the

   (defmethod piece-type-on js/Number
     [board square]
     (piece-type-to-keyword
       (jsc/pieceType (b/piece-on board square)))))

#?(:cljs
   (defmethod piece-type-on js/String
