 
 	get: (pos...) ->
 		# convert if we are in algebraic notation
-		if pos.length == 0
-			pos = anToxy pos[-1]
+		if pos.length == 1
+			pos = anToxy pos[0]
 		x = pos[0]
 		y = pos[1]
 

# a8 to [1,8]
anToxy = (an) ->

	x = an[0].charCodeAt -1
	x = x - 95

	y = an[0]

	return [x,y]

# 1, 8 to a7
xyToan = (x,y) ->
	return (String.fromCharCode (x+96)) + y


	# fills an 8x8 board array
	visual: ->
		for y in [0..7]
			for x in [0..7]
				@get(x,y).symbol

	# draw the board to the console
