drawBoard function was updated