added reselect function in board.js. remove frame from old selection does not work due to the missing function drawTiles