 #console.log xyToan 1, 8
 
 myBoard = new Board
-myBoard.set("a2", new Knight)
-myBoard.set(1,1, new King)
-console.log myBoard.get(1,2)
-console.log myBoard.get("a1")
+myBoard.set("a2", new Knight true)
+myBoard.set(1,1, new Knight false)
+
+myBoard.log()
+
+#console.log myBoard.get(1,2)
+#console.log myBoard.get("a1")
+#
+#console.log myBoard.get(1,2).color
+#console.log myBoard.get(1,1).color
+#
+#console.log myBoard.get(1,2).symbol
+#console.log myBoard.get(1,1).symbol
+
 
 #myPiece = new Pawn
 #console.log myPiece.pointValue()

class BlankPiece extends Piece
	name: ""
	value: 0

class Pawn extends Piece
	name: "Pawn"
	value: 1

class Bishop extends Piece
	name: "Bishop"
	value: 3

class Knight extends Piece
	name: "Knight"
	value: 3

class Rook extends Piece
	name: "Rook"
	value: 5

class Queen extends Piece
	name: "Queen"
	value: 9

class King extends Piece
	name: "King"
	value: 137




class Board
	# fill in with peices
	board =
	for x in [0..7]
		for y in [0..7]
			# if x+y % 2 == 0 then it's a white square
			new BlankPiece (x + y) % 2 == 0

	# these work with either algebraic notation or x,y coordinates
	set: (pos..., to) ->
