 		if (x1 == x2 and y1 == y2) or (x1 != x2 and y1 != y2)
 			return false
 
-		
 		xMove = 0
 		yMove = 0
 		if x1 == x2

		moves = []
		for j in [0..7]
			for i in [0..7]
				unless (game.get(i,j).isWhite == @isWhite and game.get(i,j) not instanceof BlankPiece)
					if game.inClearDiagonal(x,y,i,j)
						moves.push( [i,j] )
		return moves


	getMoves: (x,y,game) ->
		moves = []
		# loops over entire board, less efficient but easier to read
		for j in [0..7]
			for i in [0..7]
				if game.get(i,j).isWhite != @isWhite or game.get(i,j).isBlank
					# x and y offsets
					xo = Math.abs (x - i)
					yo = Math.abs (y - j)
					if (xo == 1 && yo == 2) || (yo == 1 && xo == 2)
						moves.push([i,j])

		return moves

