var i = parseInt(Math.floor(Math.random() * 4));
var j = parseInt(Math.floor(Math.random() * 4));
var timer = setInterval(function(){
if (board[i][j] !== 0) {
i = parseInt(Math.floor(Math.random() * 4));
j = parseInt(Math.floor(Math.random() * 4));
} else {