diff --git a/xtrn/chess/board.js b/xtrn/chess/board.js
index 7394a01424267472bb28378198ad22ad68b82e2f..22b8f74b00c4bc95cba8df3a73c65eef0d0f26da 100644
--- a/xtrn/chess/board.js
+++ b/xtrn/chess/board.js
@@ -58,10 +58,10 @@ function Board(moves)
 		}
 	}
 }
-Board.prototype.handleMove
+Board.prototype.handleMove=function(move)
 {
 	// TODO: Promotions
-	m=moves[move].match(/^([a-h][1-8])([a-h][1-8])(.*)$/);
+	m=move.match(/^([a-h][1-8])([a-h][1-8])(.*)$/);
 	if(m==null)
 		throw("Corrupt game (invalid move)!");
 	if(m!=null) {