function cleanupBoard() {
    // Unbind all click events when cleaning up previous entry/game.
    for (j = 1; j < 10; j++) {
        $("#" + j).unbind("click");
    }
    // Unbind all delete events.
    $("#delete").unbind("click", playMove);
}
/* Cleanup the main board. Deletes all click events.
 * - Always do cleanup when
 *   - Starting game
 *   - After finishing a guess (i = 4)
 * ------------------------------------------------------------------------- */
Cleanup the main board. Deletes all click events.
- Always do cleanup when
- Starting game
- After finishing a guess (i = 4)
Cleanup the main board . Deletes all click events . - Always do cleanup when - Starting game - After finishing a guess ( i = 4 )
function cleanupBoard() {
    for (j = 1; j < 10; j++) {
        $("#" + j).unbind("click");
    }
    $("#delete").unbind("click", playMove);
}
function cleanupBoard ( ) { for ( j = 1 ; j < 10 ; j ++ ) { $ ( "#" + j ) . unbind ( "click" ) ; } $ ( "#delete" ) . unbind ( "click" , playMove ) ; }
Cleanup the main board.
Cleanup the main board .
// Unbind all click events when cleaning up previous entry/game. // Unbind all delete events.