 		# x and y for board
 		for yb in [0..7]
 			for xb in [0..7]
-				unless game.get(xb,yb).isWhite == @isWhite
+				if game.get(xb,yb).isWhite != @isWhite || game.get(xb,yb).isBlank
 					# x and y offsets
 					xo = Math.abs (x - xb)
 					yo = Math.abs (y - yb)

		@color = if @isWhite then 'white' else 'black'
		@symbol = if @isWhite then @whiteSymbol else @blackSymbol
		@hasMoved = false

	type: ->
		@name

		@board =
		for y in [0..7]
			for x in [0..7]
				new BlankPiece false

		@set(4,4,"n")
		@set(3,2,"K")
